import axios from 'axios'

let dev = /^dev.+$/.test(window.document.domain) ? 'dev.' : ''
let offline = /^offline.+$/.test(window.document.domain) ? 'offline.' : ''
let prefix = offline != '' ? offline : dev
// api 的 base_url
let SERVER_HOST = 'http://120.76.219.80/'
// let SERVER_HOST = 'https://icr.ccbft.com' 

const service = axios.create({
    baseURL: SERVER_HOST
})
export default service;